package com.zhaoziqian.model;

/**
 * Created with fabric-cli
 * 作者： zhaoziqian
 * 时间： 2018/5/28  下午11:09
 * 功能：
 */
public class PeerModel implements NodeModel{
    private String requests;
    private String events;
    private String serverHostname;
    private String tlsCacerts;

    public PeerModel() {
    }

    public PeerModel(String requests, String events, String serverHostname, String tlsCacerts) {
        this.requests = requests;
        this.events = events;
        this.serverHostname = serverHostname;
        this.tlsCacerts = tlsCacerts;
    }

    public String getRequests() {
        return requests;
    }

    public void setRequests(String requests) {
        this.requests = requests;
    }

    public String getEvents() {
        return events;
    }

    public void setEvents(String events) {
        this.events = events;
    }

    public String getServerHostname() {
        return serverHostname;
    }

    public void setServerHostname(String serverHostname) {
        this.serverHostname = serverHostname;
    }

    public String getTlsCacerts() {
        return tlsCacerts;
    }

    public void setTlsCacerts(String tlsCacerts) {
        this.tlsCacerts = tlsCacerts;
    }

    @Override
    public String toString() {
        return "PeerModel{" +
                "requests='" + requests + '\'' +
                ", events='" + events + '\'' +
                ", serverHostname='" + serverHostname + '\'' +
                ", tlsCacerts='" + tlsCacerts + '\'' +
                '}';
    }
}
